package com.jia.lidao.others.enity;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/7.
 */

public class Collect {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512625874
     * collect : {"page":1,"data":[{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":6,"goods_id":0,"merchant_id":4},{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":5,"goods_id":0,"merchant_id":4},{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":4,"goods_id":0,"merchant_id":4}],"page_size":10,"total_records":3,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private CollectBean collect;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public CollectBean getCollect() {
        return collect;
    }

    public void setCollect(CollectBean collect) {
        this.collect = collect;
    }

    public static class CollectBean {
        /**
         * page : 1
         * data : [{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":6,"goods_id":0,"merchant_id":4},{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":5,"goods_id":0,"merchant_id":4},{"goods":{"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0},"merchant":{"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"},"id":4,"goods_id":0,"merchant_id":4}]
         * page_size : 10
         * total_records : 3
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * goods : {"goods_id":5,"name":"店铺测试商品","thumb":"http://www.baidu.com","price":10,"special_price":0}
             * merchant : {"merchant_id":4,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"张小姐的店铺","shopkeeper":"张小姐","phone":"18501701766"}
             * id : 6
             * goods_id : 0
             * merchant_id : 4
             */

            private GoodsBean goods;
            private MerchantBean merchant;
            private int id;
            private int goods_id;
            private int merchant_id;

            public GoodsBean getGoods() {
                return goods;
            }

            public void setGoods(GoodsBean goods) {
                this.goods = goods;
            }

            public MerchantBean getMerchant() {
                return merchant;
            }

            public void setMerchant(MerchantBean merchant) {
                this.merchant = merchant;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public static class GoodsBean {
                /**
                 * goods_id : 5
                 * name : 店铺测试商品
                 * thumb : http://www.baidu.com
                 * price : 10
                 * special_price : 0
                 */

                private int goods_id;
                private String name;
                private String thumb;
                private double sale_price;
                private int special_price;

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public double getPrice() {
                    return sale_price;
                }

                public void setPrice(double price) {
                    this.sale_price = price;
                }

                public int getSpecial_price() {
                    return special_price;
                }

                public void setSpecial_price(int special_price) {
                    this.special_price = special_price;
                }
            }

            public static class MerchantBean {
                /**
                 * merchant_id : 4
                 * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png
                 * name : 张小姐的店铺
                 * shopkeeper : 张小姐
                 * phone : 18501701766
                 */

                private int merchant_id;
                private String thumb;
                private String name;
                private String shopkeeper;
                private String phone;

                public int getMerchant_id() {
                    return merchant_id;
                }

                public void setMerchant_id(int merchant_id) {
                    this.merchant_id = merchant_id;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getShopkeeper() {
                    return shopkeeper;
                }

                public void setShopkeeper(String shopkeeper) {
                    this.shopkeeper = shopkeeper;
                }

                public String getPhone() {
                    return phone;
                }

                public void setPhone(String phone) {
                    this.phone = phone;
                }
            }
        }
    }
}
